<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/5/20
 * Time: 15:13
 */

namespace Home\Component;


use Common\Common\Component;
use Home\Model\Apply\ApplyModel;

class ApplyComponent extends Component
{
    private $model;

    public function __construct()
    {
        $this->model = new ApplyModel();
    }

    public function selectApply($order, $limit, $keyword, $act_id)
    {
        return $this->model->selectApply($order, $limit, $keyword, $act_id);
    }

    public function checkApply($user_id)
    {
        return $this->model->checkApply($user_id);
    }

    public function addApply($apply)
    {
        return $this->model->addApply($apply);
    }

    public function findApply($apply_id)
    {
        return $this->model->findApply($apply_id);
    }

    public function addNum($apply_id)
    {
        return $this->model->addNum($apply_id);
    }

   /* public function saveTime($apply_id, $time)
    {
        return $this->model->saveTime($apply_id, $time);
    }*/
}